package com.zhl.model.dict.controller;

import com.zhl.common.vo.Result;
import com.zhl.model.dict.service.SysDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 凌晨
 * @Title: SysDictionaryController
 * @Description TODO
 * @date： 2020/9/28 19:29
 * @version： V1.0
 */
@RestController
public class SysDictionaryController {

    @Autowired
    private SysDictionaryService sysDictionaryService;

    public Result queryDictValue(@RequestParam("dictCode") String dictCode){
        String dictValue = sysDictionaryService.queryDictValue(dictCode);
        return Result.ok(dictValue);
    }


}
